from django.contrib import admin
from .models import Order
class OrderManager(admin.ModelAdmin):
    list_display = ['order_code','name','content',
                    'phone','price','date_time',
                    'status','order_model']
    list_display_links = ['order_code']
    list_editable = []
    list_filter = ['order_code','name','phone',
                    'status','order_model']
    search_fields = ['order_code','name','phone',
                    'status','order_model']
admin.site.register(Order,OrderManager)